

import zipfile
import sys, os

def zipit(in_file, out_file):
    zip = zipfile.ZipFile(out_file, 'w', zipfile.ZIP_DEFLATED)
    zip.write(in_file)
    zip.close()
    return 1

HELP = """Usage: zipit INPUT_FILE OUTPUT_FILE
Purpose: Compress file with zip algorithm.
Example: zipit test.txt test.zip"""

if __name__ == '__main__':
    #__do("*.csv", '^w1')
    os.system('@chcp 1250')
    if len(sys.argv) == 3:
        zipit(sys.argv[1], sys.argv[2])
    else:
        print HELP
